<#include "/common/head.ftl">

<@showTitle title="${i18n.getMessage('videoSchedule')} > ${i18n.getMessage('list')}">
	<a href="#" onclick="cc('offering/showAddVideoSchedule.sgt?offeringId=${(offering.id)!}')">${i18n.getMessage('add')}</a>
	- <a href="#" onclick="cc('offering/showInfoOffering.sgt?id=${(offering.id)!}')">${i18n.getMessage('offering')}</a>
</@showTitle>

<br/>

<#assign schedules = offering.getVideoSchedules()>
${request.setAttribute('schedules', schedules)}
<@display.table id="listTable" name="schedules" >
	<@display.column title="${i18n.getMessage('teacher')}" style="width:150px">${(listTable.teacher.fullName)!}</@display.column>
	<@display.column title="${i18n.getMessage('date')}" style="width:70px;text-align:center">${(listTable.date?date)!}</@display.column>
	<@display.column title="${i18n.getMessage('video')}" style="width:100px;text-align:center">${(listTable.video)!}</@display.column>
	<@display.column title="${i18n.getMessage('comment')}" style="width:150px"><textarea disabled style="width:95%;height:50px;background-color:#FFFAFA">${(listTable.comment)!}</textarea></@display.column>
	<@display.column title="${i18n.getMessage('edit')}" style="width:25px;text-align:center"><img src="images/edit.gif" onclick="cc('offering/showEditVideoSchedule.sgt?id=${listTable.id}')" style="cursor:pointer"/></@display.column>
	<@display.column title="${i18n.getMessage('delete')}" style="width:40px;text-align:center"><img src="images/delete.gif" onclick="if(confirm('${i18n.getMessage('dialog.delete')}')) { cc('offering/deleteVideoSchedule.sgt?id=${listTable.id}&offeringId=${offering.id}'); }" style="cursor:pointer"/></@display.column>
</@display.table>
<br/>
